package response

type Articles []*Article
type Article struct {
	ID            int
	Category      int
	Title         string
	Summary       string
	ReadCount     int
	Content       string
	Price         float64 `json:",omitempty"`
	DiscountPrice float64 `json:",omitempty"`
	SaleCount     *int    `json:",omitempty"`
	Paid          bool    `json:",omitempty"`

	User *User
}

type ArticleOrders []*ArticleOrder
type ArticleOrder struct {
	ID     int
	UserID int
	Price  float64
}
